Machine Learning for Cybersecurity Cookbook by Emmanuel Tsukerman
Author:Emmanuel Tsukerman
Language: eng
Format: epub
Tags: COM043050 - COMPUTERS / Security / Networking, COM004000 - COMPUTERS / Intelligence (AI) and Semantics, COM025000 - COMPUTERS / Expert Systems
Publisher: Packt Publishing
Published: 2019-11-22T13:33:43+00:00
In the following steps, we provide a recipe for replacing the face of one individual in an image with that of another. The code is structured in five parts: Deepfake.ipynb (main), the deepfake_config configuration file, deepfake_face_detection, deepfake_face_points_detection, and deepfake_face_swap. Also, a models folder is included.
The following code can be found in Deepfake.ipynb:
Import opencv for image operations and the methods needed to swap faces from the associated code:
import os
import cv2
import numpy as np
from deepfake_face_detection import select_face
from deepfake_face_swap import (
warp_image_2d,
warp_image_3d,
mask_from_points,
apply_mask,
correct_colours,
transformation_from_points,
ProcessFace,
)
Specify the image containing the face we wish to use in content_image and the image where we want the face to be transferred to in target_image. Finally, specify where you'd like the result created:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8315)
Test-Driven Development with Java by Alan Mellor(6858)
Data Augmentation with Python by Duc Haba(6777)
Principles of Data Fabric by Sonia Mezzetta(6518)
Learn Blender Simulations the Right Way by Stephen Pearson(6424)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6285)
Hadoop in Practice by Alex Holmes(5967)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5817)
RPA Solution Architect's Handbook by Sachin Sahgal(5686)
Big Data Analysis with Python by Ivan Marin(5426)
The Infinite Retina by Robert Scoble Irena Cronin(5383)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5164)
Pretrain Vision and Large Language Models in Python by Emily Webber(4393)
Infrastructure as Code for Beginners by Russ McKendrick(4162)
Functional Programming in JavaScript by Mantyla Dan(4048)
The Age of Surveillance Capitalism by Shoshana Zuboff(3966)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3875)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3674)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3654)
